﻿<%@ Page Title="网站标签管理" Language="C#" MasterPageFile="~/AdminManager/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="Admin_TagManager.aspx.cs" Inherits="AdminManager_Admin_TagManager" %>

<%@ Register Src="../UserControl/DataPagerUserControl.ascx" TagName="DataPagerUserControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="Login_mP">
        <table border="0" cellspacing="0" cellpadding="0" class="Ltablewr">
            <tr>
                <td height="28">
                    <div class="L_title">
                        网站标签管理&gt;
                        <div class="L_tmid">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td width="20" align="right" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="152" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="90" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="90" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="57" height="28" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="80" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                    <td width="20" align="left" valign="middle">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top">
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                        <tr align="center">
                            <td width="53" bgcolor="#F1F3F5" class="M_tdBg">
                                &nbsp;
                            </td>
                            <td width="215" bgcolor="#F1F3F5" class="M_tdBg">
                                标签
                            </td>
                            <td width="227" bgcolor="#F1F3F5" class="M_tdBg">
                                点击数
                            </td>
                            <td width="202" bgcolor="#F1F3F5" class="M_tdBg">
                                标签信息
                            </td>
                            <td width="245" bgcolor="#F1F3F5" class="M_tdBg">
                                操作
                            </td>
                            <td bgcolor="#F1F3F5" class="M_tdBg">
                                &nbsp;
                            </td>
                        </tr>
                        <asp:ListView ID="ListView1" runat="server" 
                            OnPagePropertiesChanging="ListView1_PagePropertiesChanging" 
                            onitemcommand="ListView1_ItemCommand">
                            <LayoutTemplate>
                                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                            </LayoutTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td height="37" align="center" valign="middle" bgcolor="#F1F3F5">
                                        <input type="checkbox" name="checkbox" id="checkbox" />
                                    </td>
                                    <td align="center" valign="middle" bgcolor="#F1F3F5">
                                        <%#Eval("TagName") %>
                                    </td>
                                    <td align="center" valign="middle" bgcolor="#F1F3F5">
                                        <%#Eval("Hits") %>
                                    </td>
                                    <td align="center" valign="middle" bgcolor="#F1F3F5">
                                        <span class="fontGreen">
                                            <%#Eval("IsTop").ToBoolean() ? "顶" : "　"%></span>&nbsp; &nbsp;<span class="fontRed">
                                                <%#Eval("IsHot").ToBoolean() ? "热" : "　"%></span>&nbsp;&nbsp;<span class="fontBlue">
                                                    <%#Eval("IsRecommend").ToBoolean() ? "荐" : "　"%></span>
                                    </td>
                                    <td align="center" valign="middle" bgcolor="#F1F3F5">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                            CommandName="TopCommand" CssClass="amend" OnClientClick="return confirm('您确定要首页推荐吗？');"><%#Eval("IsTop").ToBoolean() ? "取消首页" : "首页推荐"%></asp:LinkButton>
                                        &nbsp;<span class="amend">|&nbsp;</span>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID") %>'
                                            CommandName="ReCommand" CssClass="amend" OnClientClick="return confirm('您确定要推荐吗？');"> <%#Eval("IsRecommend").ToBoolean() ? "取消推荐" : "推荐标签"%></asp:LinkButton>
                                        |&nbsp;</span><asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%#Eval("ID") %>'
                                            CommandName="HotCommand" CssClass="amend" OnClientClick="return confirm('您确定要谁为热门标签吗？');"><%#Eval("IsHot").ToBoolean() ? "取消热门" : "热门标签"%></asp:LinkButton>
                                        &nbsp;<span class="amend">|&nbsp;</span>
                                        <asp:LinkButton ID="LinkButton4" runat="server" CommandArgument='<%#Eval("ID") %>'
                                            CommandName="DeleteItem" CssClass="amend" OnClientClick="return confirm('您确定要删除吗？');">删除</asp:LinkButton>
                                    </td>
                                    <td bgcolor="#F1F3F5">
                                        &nbsp;
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:ListView>
                        <tr>
                            <td height="42" colspan="6" align="left" bgcolor="#FFFFFF">
                                <table height="35" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="82" height="35" align="left" valign="middle">
                                            <div class="choose_t">
                                                <input type="checkbox" name="checkbox2" id="checkbox2" />
                                                全选</div>
                                        </td>
                                        <td width="110" align="left" valign="middle">
                                            <a href="#" class="ipc_input">删除所选</a>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <!-- 分页样式 -->
        <uc1:DataPagerUserControl ID="DataPagerUserControl1" PageSize="20" runat="server" />
    </div>
</asp:Content>
